home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2277 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: neptune.cs.trinity.edu!janus8!trauschu
  2. From: trauschu@cs.trinity.edu (Megaman)
  3. Newsgroups: comp.programming,alt.msdos.programmer,comp.lang.c++
  4. Subject: Re: How to detect HD
  5. Followup-To: comp.programming,alt.msdos.programmer,comp.lang.c++
  6. Date: 16 Jan 1996 21:05:01 GMT
  7. Organization: Trinity University
  8. Message-ID: <4dh3tt$5lu@neptune.cs.trinity.edu>
  9. References: <4d5s19$m7l@nosy.bart.nl> <4de9g4$sc6@hades.rz.uni-sb.de>
  10. NNTP-Posting-Host: janus8.cs.trinity.edu
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. B
  14. > int get_nr_hds(void)
  15. > {
  16. >     int res = 0;
  17.  
  18. >     printf("Hello User! Please open your computer and check the\n");
  19. >     printf("number of HDs you have installed. Type that number: ");
  20. >     fscanf(stdin, "%d", &res);
  21. >     return res;
  22. > }
  23.  
  24. I must say this was the most entertaining message I have read here in a while.
  25. All kidding aside, I have tried a few procedures for detecting the number
  26. of drives, but is there any one way that is best (aside from the above) :-)
  27.  
  28. Thomas
  29.  
  30. --
  31. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  32. "Hakuna Matata" - it means no worries. - "C'est la vie"
  33.  
  34. Computer Science Major
  35. 3D Graphics Interests
  36. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  37.